.container {
  min-height: 100vh;
  background-color: #f5f5f5;
  padding-bottom: 80px;
}

/* 服务信息 */
.serviceInfo {
  background: white;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.serviceName {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  flex: 1;
}

.serviceDate {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 14px;
}

.calendarIcon {
  font-size: 16px;
}

/* 日期选择 */
.dateSection {
  background: white;
  padding: 16px;
  margin-bottom: 16px;
}

.dateList {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 8px;
  width: 100%;
}

.dateItem {
  flex: 1;
  text-align: center;
  padding: 12px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  margin: 0 2px;
  transform: scale(1);
}

.dateItem:hover {
  background: #f0f8ff;
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.15);
}

.dateItem.selectedDate {
  background: #1890ff;
  color: white;
  border-color: #1890ff;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.dateItem.unavailableDate {
  color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.dayName {
  font-size: 12px;
  margin-bottom: 4px;
}

.dayDate {
  font-size: 14px;
  font-weight: 600;
}

.todayLabel {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ff4d4f;
  color: white;
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 4px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 诊室选择 */
.roomSection {
  background: white;
  padding: 16px;
  margin-bottom: 16px;
}

.sectionTitle {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.roomList {
  display: flex;
  gap: 12px;
}

.roomItem {
  flex: 1;
  padding: 12px 16px;
  text-align: center;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  color: #666;
  transform: scale(1);
}

.roomItem:hover {
  border-color: #1890ff;
  color: #1890ff;
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.15);
}

.roomItem.selectedRoom {
  border-color: #1890ff;
  background: #e6f7ff;
  color: #1890ff;
  font-weight: 600;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

/* 时间段选择 */
.timeSection {
  background: white;
  padding: 16px;
  margin-bottom: 16px;
}

.timeGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.timeSlot {
  padding: 16px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  text-align: center;
  transform: scale(1);
}

.timeSlot:hover {
  border-color: #1890ff;
  background: #f0f8ff;
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.15);
}

.timeSlot.selectedTimeSlot {
  border-color: #1890ff;
  background: #e6f7ff;
  color: #1890ff;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.timeSlot.unavailableSlot {
  border-color: #f0f0f0;
  background: #fafafa;
  cursor: not-allowed;
  opacity: 0.6;
  color: #ccc;
}

.timeText {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.availableText {
  font-size: 12px;
  color: #666;
}

.timeSlot.selectedTimeSlot .availableText {
  color: #1890ff;
}

/* 底部确认模态框 */
.modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modalContent {
  background: white;
  border-radius: 12px 12px 0 0;
  width: 100%;
  max-height: 60vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.modalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}

.modalTitle {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.closeButton {
  font-size: 24px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
}

.closeButton:hover {
  color: #666;
}

.modalBody {
  padding: 20px;
}

.confirmItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}

.confirmItem:last-child {
  border-bottom: none;
}

.confirmLabel {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.confirmValue {
  font-size: 14px;
  color: #333;
  font-weight: 600;
  text-align: right;
  flex: 1;
  margin-left: 16px;
}

.modalFooter {
  padding: 16px 20px;
  border-top: 1px solid #f0f0f0;
  background: white;
}

.confirmButton {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #1890ff;
  color: white;
}

.confirmButton:hover {
  background: #40a9ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.confirmButton:disabled {
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.loadingButton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.loadingSpinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 成功提示覆盖层 */
.successOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease-out;
}

.successContent {
  background: white;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.successIcon {
  width: 60px;
  height: 60px;
  background: #52c41a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 32px;
  color: white;
  font-weight: bold;
  animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.successText {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .serviceInfo {
    padding: 12px;
  }
  
  .serviceName {
    font-size: 15px;
  }
  
  .dateSection,
  .roomSection,
  .timeSection {
    padding: 12px;
  }
  
  .dateItem {
    flex: 1;
    padding: 10px 2px;
  }
  
  .roomItem {
    padding: 10px 12px;
  }
  
  .timeSlot {
    padding: 12px 8px;
  }
  
  .timeText {
    font-size: 13px;
  }
  
  .availableText {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .dateList {
    gap: 6px;
  }
  
  .dateItem {
    flex: 1;
    padding: 8px 1px;
  }
  
  .dayName {
    font-size: 11px;
  }
  
  .dayDate {
    font-size: 13px;
  }
  
  .timeGrid {
    gap: 8px;
  }
  
  .timeSlot {
    padding: 10px 6px;
  }
  
  .timeText {
    font-size: 12px;
  }
  
  .availableText {
    font-size: 10px;
  }
}
